/*
 * AcercaDe.java
 *
 * Created on 17 de marzo de 2006, 0:57
 */

package fmap.gui;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;


/**
 *
 * @author  javi
 */
public class AcercaDe extends javax.swing.JFrame
{
    
    /** Creates new form AcercaDe */
    public AcercaDe ()
    {
        initComponents ();
        this.addMouseListener ( new CloseAcercaDe( this ));
        centra ( this );
        setVisible( true );
    }
    
    private void centra (javax.swing.JFrame frm)
    {
        java.awt.Rectangle rct = new java.awt.Rectangle (frm.getGraphicsConfiguration ().getBounds ());
        frm.setLocation ((rct.width-frm.getWidth ())/2, (rct.height-frm.getHeight ())/2);
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
    private void initComponents()
    {
        jLayeredPane1 = new javax.swing.JLayeredPane();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();

        setAlwaysOnTop(true);
        setResizable(false);
        setUndecorated(true);
        jLayeredPane1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jLabel2.setFont(new java.awt.Font("Bitstream Vera Sans Mono", 0, 10));
        jLabel2.setText("Copyright \u00a9 2006");
        jLabel2.setBounds(40, 70, 105, 15);
        jLayeredPane1.add(jLabel2, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel3.setFont(new java.awt.Font("Bitstream Vera Sans Mono", 0, 10));
        jLabel3.setText("Javier Sanrom\u00e1n ( javier.sanroman@ya.com )");
        jLabel3.setBounds(40, 90, 270, 15);
        jLayeredPane1.add(jLabel3, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel4.setFont(new java.awt.Font("Bitstream Vera Sans Mono", 0, 10));
        jLabel4.setText("Gesti\u00f3n de mapas l\u00f3gicos de ficheros");
        jLabel4.setBounds(40, 40, 230, 13);
        jLayeredPane1.add(jLabel4, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel1.setFont(new java.awt.Font("Bitstream Vera Sans Mono", 1, 12));
        jLabel1.setText("Fmap - beta2");
        jLabel1.setBounds(40, 20, 84, 15);
        jLayeredPane1.add(jLabel1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fmap/img/logo.png")));
        jLabel5.setBounds(280, 0, 80, 70);
        jLayeredPane1.add(jLabel5, javax.swing.JLayeredPane.DEFAULT_LAYER);

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jLayeredPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 351, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jLayeredPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 113, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
        );
        pack();
    }// </editor-fold>//GEN-END:initComponents
    
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLayeredPane jLayeredPane1;
    // End of variables declaration//GEN-END:variables
    
    
    class CloseAcercaDe extends MouseAdapter
    {
        AcercaDe ad;
        public CloseAcercaDe( AcercaDe _ad )
        {
            ad = _ad;
        }
        
        public void mousePressed (MouseEvent e)
        {
            ad = (AcercaDe)e.getSource ();
            ad.setVisible (false);
        }
    }
    
}
